﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NLite.Data;

namespace NLite.Domain.Events
{
    /// <summary>
    /// 主键查询事件
    /// </summary>
    /// <typeparam name="TData"></typeparam>
    /// <typeparam name="TId"></typeparam>
    [Serializable]
    public class QueryEvent<TData, TId> : Event
    {
        /// <summary>
        /// 得到或设置待查询的数据Id
        /// </summary>
        public TId Id { get; set; }
    }

  

    /// <summary>
    /// 查询事件
    /// </summary>
    /// <typeparam name="TData"></typeparam>
    [Serializable]
    public class QueryEvent<TData> : Event
    {
        /// <summary>
        /// 得到或设置查询上下文
        /// </summary>
        public QueryContext<TData> Context { get; set; }
    }
}
